home *** CD-ROM | disk | FTP | other *** search
- 139
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- GetFilename
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows and Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baGetFilename displays a file dialog box and returns the filename selected.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baGetFilename( Operation, StartDir, Filename, Filter, Flags, Instruction,
- --- RECORDSEPARATOR ---
- NoFolders, X, Y )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, string, string, string, integer, string, integer, integer, integer.
- --- RECORDSEPARATOR ---
- Operation is the type of dialog to show. Can be "open" or "save".
- --- RECORDSEPARATOR ---
- StartDir is the initial directory. Use "" for the current directory.
- --- RECORDSEPARATOR ---
- Filename is the initial file name to display.
- --- RECORDSEPARATOR ---
- Filter is the type of files to display. Use "" to show all files.
- --- RECORDSEPARATOR ---
- Flags modifies the behaviour of the dialog.
- --- RECORDSEPARATOR ---
- Instruction is the instruction to display to the user.
- --- RECORDSEPARATOR ---
- If NoFolders is true, the folder selection controls will not be shown.
- --- RECORDSEPARATOR ---
- X is horizontal position of the dialog.
- --- RECORDSEPARATOR ---
- Y is the vertical position of the dialog.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String.
- --- RECORDSEPARATOR ---
- Returns the file name selected, or "" if the user cancelled.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set filename = baGetFilename( "save", "c:\temp", "newfile.txt", "Text files|*.txt", 0,
- --- RECORDSEPARATOR ---
- "Save new file", false, 100, 100 )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- file := baGetFilename( "open", "c:\\temp", "", "", 524288, "Select data file to open",
- --- RECORDSEPARATOR ---
- true, -1, 0 )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- The filter argument consists of a series of strings separated by "|" characters. On
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
- , the strings are divided into pairs, the first half of a pair is the description
- --- RECORDSEPARATOR ---
- that appears in the drop down box, the second half is the wildcard for the files.
- --- RECORDSEPARATOR ---
- Separate multiple wildcards with semi-colons.
- --- RECORDSEPARATOR ---
- "Text files|*.txt"
- --- RECORDSEPARATOR ---
- -- shows only text files
- --- RECORDSEPARATOR ---
- "Text files|*.txt"|All files|*.*"
- --- RECORDSEPARATOR ---
- --
- --- RECORDSEPARATOR ---
- allows the user to display either text files or all files
- --- RECORDSEPARATOR ---
- "Images|*.bmp;*.tif;*.jpg"
- --- RECORDSEPARATOR ---
- -- shows different image files
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
- , the filter is the four character code of the file type eg ΓÇ£TEXTΓÇ¥. Up to
- --- RECORDSEPARATOR ---
- 4 types can be specified, eg ΓÇ£TEXT|PICTΓÇ¥.
- --- RECORDSEPARATOR ---
- Setting the NoFolders option to true will mean that the user will not be able to
- --- RECORDSEPARATOR ---
- change the initial directory, and folders will not be shown.
- --- RECORDSEPARATOR ---
- The X and Y values are the number of pixels from the top left corner of the screen.
- --- RECORDSEPARATOR ---
- Set X to -1 to position the dialog in the center of the calling Director/Authorware
- --- RECORDSEPARATOR ---
- window. Set X to -2 to position the dialog in the center of the screen. On
- --- RECORDSEPARATOR ---
- Macintosh, if using the Navigation Services option then ΓÇô3 will position the dialog
- --- RECORDSEPARATOR ---
- where the user left it.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- (continued next page)